﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="FProductCustomer.aspx.cs" Inherits="FProductCustomer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <a href="Shoppingcart_Customer.aspx" style="color:Red">My ShoppingCart</a>
    <asp:DataList ID="DataList1" runat="server" DataKeyField="ProID" 
    DataSourceID="SqlDataSource1" CellPadding="4" ForeColor="#333333" 
    RepeatColumns="4" 
        onitemcommand="DataList1_ItemCommand">
    <AlternatingItemStyle BackColor="White" />
    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
    <ItemStyle BackColor="#FFFBD6" ForeColor="#333333" />
    <ItemTemplate>
        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Images") %>' />
        <br />
        ProID:
        <asp:Label ID="ProIDLabel" runat="server" Text='<%# Eval("ProID") %>' />
        <br />
        ProductName:
        <asp:Label ID="ProductNameLabel" runat="server" 
            Text='<%# Eval("ProductName") %>' />
        <br />
        Category:
        <asp:Label ID="CategoryLabel" runat="server" Text='<%# Eval("Category") %>' />
        <br />
        UnitPrice:
        <asp:Label ID="UnitPriceLabel" runat="server" Text='<%# Eval("UnitPrice") %>' />
        <br />
        QuantityInStock:
        <asp:Label ID="QuantityInStockLabel" runat="server" 
            Text='<%# Eval("QuantityInStock") %>' />
        <br />
        <asp:TextBox ID="txtbuyquantity" runat="server">1</asp:TextBox>
        <asp:Button ID="Button2" runat="server" Text="Enter ShoppingCart" 
            onclick="Button2_Click" CommandName="Button2" />
        <br></br>
        <asp:Label ID="Label1" runat="server"></asp:Label>
        </br>
    </ItemTemplate>
    <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:SmartAccessoriesConnectionString %>" 
    SelectCommand="SELECT * FROM [Products]"></asp:SqlDataSource>
</asp:Content>

